<template>
	<view class="navigations" :style="{backgroundColor:navigationMsg.bgColor}">
		<view class="main">
			{{navigationMsg.title}}
			<view class="back" @click="backs">

			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: ["navigationMsg"],
		data() {
			return {

			}
		},
		methods: {
			backs() {
				 uni.switchTab({
				    url: '/pages/index/index',
				  });
			}
		}
	}
</script>

<style lang="scss" scoped>
	.navigations {
		width: 100vw;
		height: 120rpx;
		overflow: hidden;
		
		.main {
			width: 100%;
			height: 100rpx;
			margin-top: 0r4px;
			text-align: center;
			font-weight: bold;
			font-size: 34rpx;
			position: relative;
			line-height: 100rpx;
			.back {
				width: 50rpx;
				height: 50rpx;
				position: absolute;
				top: 0;
				left: 30rpx;
				top: 25rpx;
				background-image: url("/static/后退.png");
				background-size: contain;
			}
		}
	}
</style>